package cn.tedu.upload.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("upload")
public class Upload {
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("链接")
    private String url;

    @ApiModelProperty("文件在系统中的名称")
    private String file;

    @ApiModelProperty("文件原始名称")
    private String fileName;

    @ApiModelProperty("文件大小(bytes)")
    private Long size;

    @ApiModelProperty("MD5值")
    private String md5;

    @ApiModelProperty("文件类型")
    private String mimeType;

    @ApiModelProperty("创建时间")
    private Date createTime;
}
